<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>施工队合同详情</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="../../../resources/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="../../../resources/css/style.css">
    <style>
        .details ul li {width: 50%;float: left;}
        .layui-table thead th{text-align: left;}
        thead tr th:before {content: "● "; color: #e3e3e3; font-size: 12px;}
        .layui-table td{text-indent: 1rem; font-size: 12px; color: #333;}
        .detailed{background-color: #FFF; font-size: 12px; color: #333333; padding: 15px 20px; line-height: 24px;margin-top: 15px;}
        /*.details ul,li{list-style: inherit;}*/
        .detailed p:after {
            content: "\0020";
            display: block;
            height: 0;
            clear: both;
        }
        .detailed p:before {content: "● "; color: #e3e3e3; font-size: 12px; margin-right: 5px; float: left;}
        .detailed .detaL{width: 120px;display: inline-block; float: left;    padding-right: 20px;}
        .detailed .dataR{display: inline-block;float: left;}
        .detailed p{margin-bottom: 10px;}

    </style>
</head>
<body>
<form class="layui-form layui-form-pane" action="" >
    <button class="layui-btn" onclick="history.back(-1);"><i class="layui-icon"></i></button>

    <div class="engineering"><!--工程信息-->
        <div class="titles">郑州建材有限公司</div>
        <div class="details">

        </div>
        <div class="detailed">      <!--工程概括-->

        </div>

    </div>



</form>

<script src="../../../resources/layui/layui.js" charset="utf-8"></script>
<script src="../../../resources/js/style.js"></script>
<script src="../../../resources/js/api.js"></script>
<script>
    layui.use(['form', 'layedit', 'laydate'], function(){
        var form = layui.form
            ,layer = layui.layer
            ,layedit = layui.layedit
            ,laydate = layui.laydate;

        //日期
        laydate.render({
            elem: '#date1'      //开始时间
        });
        laydate.render({
            elem: '#date2'  //结束时间
        });
        ajaxs('/api/contract/loadContractDetails.do','post',{'p':getCookie('yanzheng'),'uuid':sessionStorage.id}, function (data) {
            var gongchenggaikuo='';
            var datas=data.data[0][0]                     //获取详情

            for(var i=0;i<data.data[1].length;i++){
                gongchenggaikuo+=data.data[1][i].cc_key;
                gongchenggaikuo+=':';
                gongchenggaikuo+=data.data[1][i].cc_value;
                gongchenggaikuo+='  ';

            }

            $('.titles').html('编号:'+datas.cc_Code)
            $('.details').append('<ul>\n' +
                '                <li><span class=\'detaL\'>工程名称：</span><span class="dataR">  '+datas.eppName+' </span></li>\n' +
                '                <li><span class=\'detaL\'>计划开工日期：</span><span class="dataR">'+datas.preStaTime+'</span></li>\n' +
                '                <li><span class=\'detaL\'>起止点：</span><span class="dataR"> '+datas.eppStaEnd+'</span></li>\n' +
                '                <li><span class=\'detaL\'>竣工日期：</span><span class="dataR">  '+datas.preEndTime+' </span></li>\n' +
                '                <li><span class=\'detaL\'>建设单位（甲方）：</span><span class="dataR">'+datas.compJs+'</span></li>\n' +
                '                <li><span class=\'detaL\'>委托设计单位：</span><span class="dataR"> '+datas.compPerson0+'</span></li>\n' +
                '                <li><span class=\'detaL\'>施工单位（乙方）：</span><span class="dataR"> '+datas.compName1+' </span></li>\n' +
                '                <li><span class=\'detaL\'>项目负责人：</span><span class="dataR">'+datas.compPerson1+'</span></li>\n' +
                '                <li><span class=\'detaL\'>项目负责人：</span><span class="dataR">'+datas.compPerson0+'</span></li>\n' +
                '                <li><span class=\'detaL\'>联系方式：</span><span class="dataR">  '+datas.compTel1+' </span></li>\n' +
                '                <li><span class=\'detaL\'>联系方式：</span><span class="dataR">'+datas.compTel0+'</span></li>\n' +
                '            </ul>');
            $('.detailed').append('<p><span class="detaL">工程概括(规划位置、主要工程量)</span><span class="dataR">'+gongchenggaikuo+'</span></p>\n' +
                '                <p><span class="detaL">合同单价</span><span class="dataR">'+datas.cc_Price+'</span></p>\n' +
                '                <p><span class="detaL">工程费用</span><span class="dataR"></span></p>\n' +
                '                <p><span class="detaL">决算方式</span><span class="dataR">'+datas.cc_CostType+'</span></p>\n' +
                '                <p><span class="detaL">材料供应</span><span class="dataR">'+datas.cc_Material+'</span></p>' +
                ' <p><span class="detaL">工程质量</span><span class="dataR">'+datas.cc_BuildMass+'</span></p>\n' +
                '            <p><span class="detaL">安全施工</span><span class="dataR">'+datas.cc_Security+'</span></p>\n' +
                '            <p><span class="detaL">文明、环保施工</span><span class="dataR">'+datas.cc_Culture+'</span></p>\n' +
                '            <p><span class="detaL">竣工验收</span><span class="dataR">'+datas.cc_FinVe+'</span></p>\n' +
                '            <p><span class="detaL">质保期限</span><span class="dataR">'+datas.cc_WarrantyTime+'</span></p>\n' +
                '            <p><span class="detaL">其他</span><span class="dataR">'+datas.cc_Other+'</span></p>');
        })



    })

</script>
</body>
</html>